﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BANGSINHVIEN2
{
    class DALSV
    {
        public void InsertSV(string masv, string tensv, string malop, string diachi)
        {
            SqlConnection co = new SqlConnection();
            co.ConnectionString = @"Data Source=QUYNHUYEN\SQLEXPRESS;Initial Catalog=QLSV; User Id=sa; Password=sa";
            co.Open();
            SqlCommand cmd = new SqlCommand("insert into SV values ('" + masv + "','" + tensv + "','" + malop + "','" + diachi + "')", co);
            cmd.ExecuteNonQuery();
            co.Close();
        }
    }
}